﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLPM.DAO;
using QLPM.DTO;

namespace QLPM.BUS
{
    public class DonViBUS
    {
        public List<DonVi> DanhSachDonVi()
        {
            return new DonViDAO().DanhSachDonVi();
        }

        public int ThemDV(DonVi dv)
        {
            return new DonViDAO().ThemDV(dv);
        }

        public int XoaDV(DonVi dv)
        {
            return new DonViDAO().XoaDV(dv);
        }

        public int SuaDV(DonVi dv)
        {
            return new DonViDAO().SuaDV(dv);
        }
        public string LayTenDV(int maDV)
        {
            return new DonViDAO().LayTenDonVi(maDV);
        }

        public int LayMaDV(string tenDV)
        {
            return new DonViDAO().LayMaDonVi(tenDV);
        }

    }
}
